package library.web.servlet.page;

import library.domain.User;
import library.persistence.service.AccountService;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;

public class AllBookPageServlet extends HttpServlet{

    public static final String ALL_BOOK_PAGE = "/WEB-INF/jsp/allBookPage.jsp";

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        req.getRequestDispatcher(ALL_BOOK_PAGE).forward(req,resp);
//
//
//        HttpSession session = req.getSession();
//        AccountService accountService = new AccountService();
//        String username = req.getParameter("username");
//        User account = accountService.getAccount(username);
//        session.setAttribute("account",account);

    }


}
